package service.Impl;

import dao.SalaryStandardDao;
import entity.SalaryStandard;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import service.SalaryStandardService;

import java.util.List;

/**
 * 薪酬标准数据访问实现类
 */
@Repository
public class SalaryStandardServiceImpl implements SalaryStandardService {

@Autowired
SalaryStandardDao salaryStandardDao;
    @Override
    public void create(SalaryStandard salaryStandard) {
        salaryStandardDao.create(salaryStandard);
    }

    @Override
    public SalaryStandard findById(Long salaryStandardId) {
        return  salaryStandardDao.findById(salaryStandardId);
    }

    @Override
    public List<SalaryStandard> findAll() {
        return  salaryStandardDao.findAll();
    }

    @Override
    public void update(SalaryStandard salaryStandard) {
        salaryStandardDao.update(salaryStandard);
    }

    @Override
    public void deleteById(Long salaryStandardId) {
       salaryStandardDao.deleteById(salaryStandardId);
    }
}
